package com.yanjiali.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Package: com.yanjiali.entity
 * @Author: yanjiali
 * @Created: 2025/4/25 23:21
 */
@ApiModel(value="com-yanjiali-entity-ArticleLike")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_like")
public class ArticleLike {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键id")
    private Long id;

    /**
     * 对应文章id
     */
    @TableField(value = "article_id")
    @ApiModelProperty(value="对应文章id")
    private Long articleId;

    /**
     * 对应用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="对应用户id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;
}